package com.example.myapplication.kit;

import java.math.BigDecimal;
import java.util.Date;

public class DayStatisticBean {

    /**
     * 唯一ID
     */
    private String businessId;

    /**
     * 统计日期
     */
    private Date dayStr;

    /**
     * 统计日期Str
     */
    private String dayStrShow;

    /**
     * 商户ID
     */
    private String merchantId;

    /**
     * 门店id
     */
    private String storeId;

    /**
     * 订单数
     */
    private Long orderCount;

    /**
     * 消费金额
     */
    private BigDecimal consumeAmount;

    /**
     * 微信
     */
    private BigDecimal wxpayAmount;

    /**
     * 支付宝
     */
    private BigDecimal alipayAmount;

    /**
     * 线下现金
     */
    private BigDecimal offlineCashAmount;

    /**
     * 员工账户
     */
    private BigDecimal employeeAmount;

    /**
     * 会员账户
     */
    private BigDecimal vipAmount;

    /**
     * 减免金额
     */
    private BigDecimal breakAmount;

    /**
     * 其他金额
     */
    private BigDecimal otherAmount;

    /**
     * 补贴支付
     */
    private BigDecimal subsidyAmount;

    /**
     * 福利支付
     */
    private BigDecimal welfareAmount;

    /**
     * 充值支付
     */
    private BigDecimal chargeAmount;


    private BigDecimal overdrafAmount;

    /**
     * 订单来源 OrderOriginalEnum
     */
    private Integer orderOriginal;

    /**
     * 统计类型
     */
    private Integer sumType;


    /**
     * 退款总订单数
     */
    private Long refundCount;

    /**
     * 退款总金额
     */
    private BigDecimal refundAmount;


    /**
     * 三方支付
     */
    private BigDecimal threePayAmount;

    public BigDecimal getThreePayAmount() {
        return threePayAmount;
    }

    public void setThreePayAmount(BigDecimal threePayAmount) {
        this.threePayAmount = threePayAmount;
    }

    public BigDecimal getOverdrafAmount() {
        return overdrafAmount;
    }

    public void setOverdrafAmount(BigDecimal overdrafAmount) {
        this.overdrafAmount = overdrafAmount;
    }

    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public Date getDayStr() {
        return dayStr;
    }

    public void setDayStr(Date dayStr) {
        this.dayStr = dayStr;
    }

    public String getDayStrShow() {
        return dayStrShow;
    }

    public void setDayStrShow(String dayStrShow) {
        this.dayStrShow = dayStrShow;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public Long getOrderCount() {
        return orderCount;
    }

    public void setOrderCount(Long orderCount) {
        this.orderCount = orderCount;
    }

    public BigDecimal getConsumeAmount() {
        return consumeAmount;
    }

    public void setConsumeAmount(BigDecimal consumeAmount) {
        this.consumeAmount = consumeAmount;
    }

    public BigDecimal getWxpayAmount() {
        return wxpayAmount;
    }

    public void setWxpayAmount(BigDecimal wxpayAmount) {
        this.wxpayAmount = wxpayAmount;
    }

    public BigDecimal getAlipayAmount() {
        return alipayAmount;
    }

    public void setAlipayAmount(BigDecimal alipayAmount) {
        this.alipayAmount = alipayAmount;
    }

    public BigDecimal getOfflineCashAmount() {
        return offlineCashAmount;
    }

    public void setOfflineCashAmount(BigDecimal offlineCashAmount) {
        this.offlineCashAmount = offlineCashAmount;
    }

    public BigDecimal getEmployeeAmount() {
        return employeeAmount;
    }

    public void setEmployeeAmount(BigDecimal employeeAmount) {
        this.employeeAmount = employeeAmount;
    }

    public BigDecimal getVipAmount() {
        return vipAmount;
    }

    public void setVipAmount(BigDecimal vipAmount) {
        this.vipAmount = vipAmount;
    }

    public BigDecimal getBreakAmount() {
        return breakAmount;
    }

    public void setBreakAmount(BigDecimal breakAmount) {
        this.breakAmount = breakAmount;
    }

    public BigDecimal getOtherAmount() {
        return otherAmount;
    }

    public void setOtherAmount(BigDecimal otherAmount) {
        this.otherAmount = otherAmount;
    }

    public BigDecimal getSubsidyAmount() {
        return subsidyAmount;
    }


    public void setSubsidyAmount(BigDecimal subsidyAmount) {
        this.subsidyAmount = subsidyAmount;
    }

    public BigDecimal getWelfareAmount() {
        return welfareAmount;
    }

    public void setWelfareAmount(BigDecimal welfareAmount) {
        this.welfareAmount = welfareAmount;
    }

    public BigDecimal getChargeAmount() {
        return chargeAmount;
    }

    public void setChargeAmount(BigDecimal chargeAmount) {
        this.chargeAmount = chargeAmount;
    }

    public Integer getOrderOriginal() {
        return orderOriginal;
    }

    public void setOrderOriginal(Integer orderOriginal) {
        this.orderOriginal = orderOriginal;
    }

    public Integer getSumType() {
        return sumType;
    }

    public void setSumType(Integer sumType) {
        this.sumType = sumType;
    }

    public Long getRefundCount() {
        if (refundAmount == null) {
            return 0L;
        }
        return refundCount;
    }

    public void setRefundCount(Long refundCount) {
        this.refundCount = refundCount;
    }

    public BigDecimal getRefundAmount() {
        if (refundAmount == null) {
            return BigDecimal.valueOf(0.00);
        }
        return refundAmount;
    }

    public void setRefundAmount(BigDecimal refundAmount) {
        this.refundAmount = refundAmount;
    }

    //线下餐券
    BigDecimal offlineTicketAmount;

    //电子餐券
    BigDecimal couponTicketAmount;

    public BigDecimal getOfflineTicketAmount() {
        return offlineTicketAmount;
    }

    public void setOfflineTicketAmount(BigDecimal offlineTicketAmount) {
        this.offlineTicketAmount = offlineTicketAmount;
    }

    public BigDecimal getCouponTicketAmount() {
        return couponTicketAmount;
    }

    public void setCouponTicketAmount(BigDecimal couponTicketAmount) {
        this.couponTicketAmount = couponTicketAmount;
    }
}
